<?php
/**
 * The result object for nameserver information request from the API
 *
 *
 *
 * @author Ralph de Boom <php5-sidnepp@mijndomein.nl>
 * @author Peter Keizer <php5-sidnepp@mijndomein.nl>
 * @license http://www.gnu.org/licenses/gpl-3.0.txt GNU Public License v3
 * @copyright http://www.mijndomein.nl/
 * @version 0.5
 * @link http://php5-sidnepp.svn.sourceforge.net/viewvc/php5-sidnepp/trunk/dev/docs/index.html
 * @see http://php5-sidnepp.svn.sourceforge.net/viewvc/php5-sidnepp/trunk/dev/docs/php5-sidnepp/SidnNameserverInfoResult.html
 * @package php5-sidnepp
 */

class SidnNameserverInfoResult extends SidnEppResult
{
	/**
	 * Holds the nameserver info object
	 *
	 * @var <SidnNameserverInfo> $info
	 */
	private $info;

	/**
	 *
	 * @param <string> $status
	 * @param <integer> $code
	 * @param <string> $message
	 * @param <string> $hostname
	 * @param <sidnNameserverInfo> $info
	 
	 */
	public function  __construct(
		$status,
		$code = null,
		$message = null,
		SidnNameserverInfo $info = null
		)
	{
		$this->setStatus($status);
		$this->setStatusMessage($message);
		$this->setCode($code);
		if ($info)
		{
			$this->info = $info;
		}
	}

	/**
	 * Setter for $info
	 * @param SidnNameserverInfo $info
	 */
	public function setInfo(SidnNameserverInfo $info)
	{
		$this->info = $info;
	}

	/**
	 * Getter for $info
	 * @return SidnNameserver
	 */
	public function getInfo()
	{
		return $this->info;
	}
}


